Skip to content

Conversation

@grace-rehn
Copy link
Contributor

@grace-rehn grace-rehn commented Feb 14, 2025

Fixes #333

V6 no longer supports Additional Parameter --ignoreexisting.

Add IgnoreIfAlreadyExists option.

Base PR #337

Copy link
Contributor

@hnrkndrssn hnrkndrssn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@HuyPhanNguyen HuyPhanNguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

const response = await repository.create(command);

client.info(`🎉 Release ${response.ReleaseVersion} created successfully!`);
client.info(`🎉 Release ${response.ReleaseVersion} is ready for deployment!`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the call was successful and IgnoreIfAlreadyExists is false, then we know a new one was created successfully, if it is true then we don't know what happened

Suggested change
client.info(`🎉 Release ${response.ReleaseVersion} is ready for deployment!`);
if (command.IgnoreIfAlreadyExists) {
client.info(`🎉 Release ${response.ReleaseVersion} is ready for deployment!`);
} else {
client.info(`🎉 Release ${response.ReleaseVersion} created successfully!`);
}

@grace-rehn grace-rehn merged commit 09fd7da into main Feb 14, 2025
8 of 9 checks passed
@grace-rehn grace-rehn deleted the grace/add-create-release-ignore-existing branch February 14, 2025 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing option to ignore existing release in CreateOctopusRelease@6

4 participants